clear all
cap log close
set more off

// define subdirectory locations ----------
global code = "${proj}/code"
global data = "${proj}/data"
global est  = "${proj}/estimates"
global out  = "${proj}/output"
global temp = "${proj}/_temp"
global log  = "${proj}/logs"
// ---------------------------------------

* initialize log file -------------------
log using "${log}/02-iv_checks.log", text replace 

* run subprograms: IV checks ------------------------
rscript using "${code}/iv_checks/01-getfe.R", args("${proj}" "${rlib}")
do "${code}/iv_checks/02-propensity.do" 
do "${code}/iv_checks/03-balance.do"
do "${code}/iv_checks/04-first_stage.do"
rscript using "${code}/iv_checks/05-fll_est.R", args("${proj}" "${rlib}")
do "${code}/iv_checks/06-monotonicity.do"
do "${code}/iv_checks/07-speeds.do"
do "${code}/iv_checks/08-bunching.do"
do "${code}/iv_checks/09-summary.do"
* -----------------------------------------------------

* end log file ---------------------------------------
log close    




